package cn.edu.sgu.www.mhxysy.service.except.impl;

import cn.edu.sgu.www.mhxysy.entity.except.PropertyType;
import cn.edu.sgu.www.mhxysy.mapper.except.PropertyTypeMapper;
import cn.edu.sgu.www.mhxysy.service.except.PropertyTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class PropertyTypeServiceImpl implements PropertyTypeService {

    private final PropertyTypeMapper propertyTypeMapper;

    @Autowired
    public PropertyTypeServiceImpl(PropertyTypeMapper propertyTypeMapper) {
        this.propertyTypeMapper = propertyTypeMapper;
    }

    @Override
    public List<PropertyType> selectAll() {
        return propertyTypeMapper.selectList(null);
    }

    @Override
    public PropertyType selectById(Integer id) {
        return propertyTypeMapper.selectById(id);
    }

}